//////////////////////////////////////////////////////////////////////////
// Author:		Dan Polak
// Date:		5/5/2011
// Last Mod:	N/A
//
// File:		Bullets.h
//
// Purpose:		Handle the creating and updating of bullets in this game.
//				////////////////////////////////////////////////////////////////////////

#ifndef _BULLETS_H
#define _BULLETS_H

struct Sphere;

class CBullets
{
private:
	Sphere* m_pCollision;
	float	m_fSpeed;
	vec3f*	m_vPosition;
	vec3f*	m_vForward;
	int		m_nType;
	float	m_fLifeSpan;
	int		m_nDamage;

protected:

public:
	//Mutators
	void SetPosition(vec3f* v)	{m_vPosition = v;}
	void SetSpeed(float f)		{m_fSpeed = f;}
	
	//Accessors
	vec3f* GetPosition()	{return m_vPosition;}
	float GetSpeed()		{return m_fSpeed;}
	float GetLife()			{return m_fLifeSpan;}
	Sphere* GetCollision()	{return m_pCollision;}
	int GetDamage()			{return m_nDamage;}

	void CreateBullet(float fRadius, float fLifeSpan, float fSpeed, int nType, vec3f* vPos, vec3f* vForward);

	void DestroyBullet();

	void Render();

	void Update(float fDeltaTime);
};

#endif